package com.android.miniProject;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.SystemClock;

public class ChronoBaseService extends Service{

	public static  long base = 0;
	public static boolean baseChanged = false;
	
	
	public static long start(){
		base = SystemClock.elapsedRealtime();
		baseChanged = true;
		System.out.println("base = " + base);
		return base; 
	}
	
	public static void stop(){
		baseChanged = false;
	}
	
	public IBinder onBind(Intent intent) {
		return null;
	}
	
	public void onCreate(){
		
	}
	
	public int onStartCommand(Intent intent, int flags, int startId) {
		return super.onStartCommand(intent, flags, startId);
	}
	
	public void onDestroy(){
		super.onDestroy();
	}

}
